<template>
  <div>
    <div class="left">
      left 模块
      <p>left组件的值为 {{ count }}</p>
      <button @click="add">点击count+1</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      count: 1,
    };
  },
  methods: {
    add() {
      this.count++;
    },
  },
  activated(){
    console.log('组件被激活了')
  },
  deactivated(){
    console.log('组件被缓存了')
  }
};
</script>

<style lang="less" scoped>
.left {
  /* color: blue; */
  height: 200px;
  background-color: aqua;
  color: white;
}
/deep/ h5 {
  color: green;
}
</style>
